package com.atguigu.mock.entity;

import com.atguigu.common.base.entity.AutoIdBase;
import com.atguigu.common.comment.Comment;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;

@Entity
@Getter
@Setter
@NoArgsConstructor
@Comment("行政区划表")
public class Region extends AutoIdBase {
    @Comment("区划名称")
    private String name;

    @Comment("邮编")
    private String zipCode;

    @Comment("行政级别: 1.省级 2.地市级")
    private Integer level;

    @Comment("上级区划")
    private Long superiorRegion;
}
